import { sendRequest } from '@/http';

const baseUrl = '/admin/institution';

/* 修改建筑内房间 */
export const editBranchRoom = (data: any) =>
  sendRequest({
    url: `${baseUrl}/editBranchRoom`,
    method: 'post',
    data,
  });

/* 创建建筑内房间 */
export const createBranchRoom = (data: any) =>
  sendRequest({
    url: `${baseUrl}/createBranchRoom`,
    method: 'post',
    data,
  });

/* 创建建筑内房间 */
export const deleteBranchRoom = (roomId: string) =>
  sendRequest({
    url: `${baseUrl}/deleteBranchRoom`,
    method: 'post',
    data: { roomId },
  });

/* 查询建筑内房间 */
export const queryBranchRoomList = (params: any) =>
  sendRequest({
    url: `${baseUrl}/queryBranchRoomList`,
    method: 'get',
    params,
  });

/* 查询房间 */
export const queryBranchRoomInfo = (params: any) =>
  sendRequest({
    url: `${baseUrl}/queryBranchRoomInfo`,
    method: 'get',
    params,
  });
